package com.xike.micromemberserver.feign;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

//公共服务接口
@FeignClient(value = "micro-email-server")
public interface MessageFeign {
    @PostMapping(value = "/message/send" , produces = MediaType.APPLICATION_JSON_VALUE)
    String sendMessage(@RequestParam(value = "phoneNum") String phoneNum,@RequestParam(value = "msg") String msg);

}
